angular.module('customResourceDemo', ['mongolabResource'])
.factory('Users', ['mongolabResource', function (mongolabResource) {
	var users = mongolabResource('users');
	return users;
}])
.controller('CustomResourceCtrl', ['$scope', 'Users', function ($scope, Users) {
	$scope.hehe = 'abc';
	Users.query().then(function (users) {
		$scope.users = users;
		$scope.haha = 'haha';
	});
}]);
